<%@page import="com.easyweb.model.FriendLink"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	Map<String,FriendLink> map = (Map<String,FriendLink>) request.getAttribute("friendlink");
	StringBuffer sb = new StringBuffer();
	sb.append("<table>");
	if(map!=null&&map.size()>0){
		int num = 0;
		for(String id : map.keySet()){
			if(num%2==0){
				sb.append("<tr>");
			}
			sb.append("<td><a target='_blank' href='").append(map.get(id).getUrl()).append("'>").append(map.get(id).getTitle()).append("</a></td>");
			num++;
			if(num%2==0){
				sb.append("</tr>");
			}
		}
	}
	sb.append("</table>");
%> 
<footer class="footer">
      <div class="container">
        <div class="row footer-top">
          <div class="col-sm-12 col-md-12">
            <div class="row about">
              <div class="col-md-3 col-sm-12">
                <h4>关于</h4>
                <ul class="list-unstyled">
                  <li><a href="<%=BASE_PATH %>/about.html">关于作者</a></li>
                  <li><a href="<%=BASE_PATH %>/toutiao.html">头条统计</a></li>
                </ul>
              </div>
              <div class="col-md-3 col-sm-12">
                <h4>联系方式</h4>
                <ul class="list-unstyled">
                  <li><a href="#" title="新浪微博" target="_blank">新浪微博</a></li>
                  <li><a href="#">电子邮件</a></li>
                </ul>
              </div>
              <div class="col-md-4 col-sm-12">
                <%
                	if(map!=null&&map.size()>0){
                %>
                		<h4>友情链接</h4>
                		<%=sb.toString() %>
                <%
                	}
                %>
              </div>
              <div class="col-md-2 col-sm-12 center">
                <img alt="微儿博客" src="<%=BASE_PATH %>/img/barcode.png"/>
              </div>
            </div>
    
          </div>
        </div> 
        <hr>
        <div class="row footer-bottom">
          <ul class="list-inline text-center">
            <li><span style="font-family:arial;">使用时请标注Powered By 微儿博客</span></li>
          </ul>
        </div>
      </div>
      	<!-- 统计代码 -->
    </footer>